package com.carl.math;

import java.util.Scanner;

public class question_08 {

    public static void main(String[] args) {
        // 钞票
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        System.out.println(n);
        System.out.printf("%d  100\n",n/100);
        n %= 100;
        System.out.printf("%d  50\n",n/50);
        n %= 50;
        System.out.printf("%d  20\n",n/20);
        n %= 20;
        System.out.printf("%d  10\n",n/10);
        n %= 10;
        System.out.printf("%d  5\n",n/5);
        n %= 5;
        System.out.printf("%d  5\n",n/2);
        n %= 2;
        System.out.printf("%d  1\n",n);



    }
}
